package com.quotes.ui;

import java.awt.event.*;
import com.quotes.datamodell.DataChangedEventListener;
import com.quotes.datamodell.DataRepository;

public class MainWindowEventListener implements ActionListener, DataChangedEventListener
{
	private MainWindow source;

	public MainWindowEventListener(MainWindow source) {
		this.source = source;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand() == "Exit") {
        	System.exit(0);
        }
	}

	@Override
	public void dataChanged(DataRepository repository) {
	}
}
